<template>
  <div>
    <div class="card_Head">
        <span>{{Settitle}}</span>
        <svg t="1644566413746" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3576" width="18" height="18"><path d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z" p-id="3577"></path></svg>
    </div>
    <div class="Card_Num">
        <h2>{{pirce}}</h2>
    </div>
    <div class="Card_body">
        <slot name="body"></slot>
    </div>
    <div class="Card_footer">
        <slot name="footer">
        </slot>
        <!-- <span>日销售额￥ 12423</span> -->
    </div>
  </div>
</template>

<script>
export default {
    name:'Detail',
    props:['Settitle','pirce']
}
</script>

<style lang="scss" scoped>
    .card_Head{
        display: flex;
        justify-content: space-between;
        span{
            color: rgb(184, 179, 179);
        }
    }
    .Card_Num{
        h2{
            margin: 10px 0px;
            font-size: 23px;
        }
    }
    .Card_body{
        height: 50px;
        box-sizing: border-box;
        position: relative;
        .box{
            position: absolute;
            bottom: 0;
            align-self: flex-end;
            display: flex;
            .box_right{
                margin-right: 10px;
            }
            span{
                font-size: 11px;
            }
            svg{
                vertical-align: middle;
            }
        }
    }
    .Card_footer{
        .footer_span{
            margin-top: 10px;
            border-top: 1px solid #eee;
            display: block;
            font-size: 15px;
            padding-top: 8px;
        }
        .box{
            margin-top: 10px;
            padding-top: 8px;
            font-size: 15px;
            border-top: 1px solid #eee;
            display: flex;
            .box_right{
                margin-right: 8px;
            }
        }
    }
</style>